/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Finca.java
 *
 * Created on 02-may-2011, 12:47:29
 */
package es.fpsampayo.fin2006.gui.paneles;

import es.fpsampayo.fin2006.gui.forms.CatForm;
import es.fpsampayo.recursos.Conexion;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author fran
 */
public class Finca extends javax.swing.JPanel {
    
    private String referencia_catastral = null;

    /** Creates new form Finca */
    public Finca() {
        initComponents();
    }

    public String getReferencia_catastral() {
        return referencia_catastral;
    }
    
    public void cargarCampos (int id){
        Conexion conexion = new Conexion();
        System.out.println("SELECT * FROM cat.finca WHERE id_parcela = " + id);
        ResultSet rs = conexion.Select("SELECT * FROM cat.finca WHERE id_parcela = " + id);
        try {
            rs.next();
            campoBloque.setText(rs.getObject("bloque").toString());
            campoClase.setText(rs.getObject("clase_bi").toString());
            campoCodDGC.setText(rs.getObject("cod_municipio_dgc").toString());
            campoCodDel.setText(rs.getObject("cod_delegacion").toString());
            campoCodINE.setText(rs.getObject("cod_municipio_ine").toString());
            campoCodMun.setText(rs.getObject("cod_municipio_dg").toString());
            campoCodParaje.setText(rs.getObject("cod_paraje").toString());
            campoCodPos.setText(rs.getObject("cod_postal").toString());
            campoDirNoEs.setText(rs.getObject("dir_no_estructurada").toString());
            campoParcela.setText(rs.getObject("referencia_catastral").toString());
            
            referencia_catastral = rs.getObject("referencia_catastral").toString();
            
            campoDistrito.setText(rs.getObject("distrito").toString());
            campoDup1.setText(rs.getObject("dup1").toString());
            campoDup2.setText(rs.getObject("dup2").toString());
            campoKm.setText(rs.getObject("km").toString());
            campoNum1.setText(rs.getObject("num_pol1").toString());
            campoNum2.setText(rs.getObject("num_pol2").toString());
            campoParaje.setText(rs.getObject("paraje").toString());
            campoParcel.setText(rs.getObject("parcela").toString());
            campoPoligono.setText(rs.getObject("poligono").toString());
            campoSupFInca.setText(rs.getObject("sup_finca").toString());
            campoSupSobRas.setText(rs.getObject("sup_cons_sobre_rasante").toString());
            campoSupBajRas.setText(rs.getObject("sup_cons_bajo_rasante").toString());
            campoSupCub.setText(rs.getObject("sup_cubierta").toString());
            campoSupConsTot.setText(rs.getObject("sup_cons_total").toString());
            campoX.setText(rs.getObject("coor_x").toString());
            campoY.setText(rs.getObject("coor_y").toString());
            campoCodDGC.setText(rs.getObject("cod_municipio_dg").toString());
            campoCodProvincia.setText(rs.getObject("cod_prov").toString());
            campoCodVia.setText(rs.getObject("cod_via").toString());
            campoConcello.setText(rs.getObject("nombre_municipio").toString());
            campoNomeVia.setText(rs.getObject("nombre_via").toString());
            campoProvincia.setText(rs.getObject("nombre_prov").toString());
            campoSgVia.setText(rs.getObject("sg_via").toString());
            campoHuso.setText(rs.getObject("huso_geografico_srs").toString());
            campoEM.setText(rs.getObject("nombre_em").toString());
            System.out.println("Valor rcat :'" + campoParcela.getText() + "'");
            
        } catch (SQLException ex) {
            Logger.getLogger(Finca.class.getName()).log(Level.SEVERE, null, ex);
        } finally{
            conexion.Desconectar();
        }
    }
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        campoCodDel = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        campoCodMun = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        campoClase = new javax.swing.JTextField();
        campoParcela = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        campoHuso = new javax.swing.JTextField();
        jLabel30 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        campoCodProvincia = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        campoCodDGC = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        campoNum1 = new javax.swing.JTextField();
        campoNomeVia = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        campoSgVia = new javax.swing.JTextField();
        campoCodVia = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        campoDup1 = new javax.swing.JTextField();
        campoNum2 = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        campoDup2 = new javax.swing.JTextField();
        campoCodPos = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        campoDirNoEs = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        campoBloque = new javax.swing.JTextField();
        campoKm = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        campoConcello = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        campoDistrito = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        campoProvincia = new javax.swing.JTextField();
        campoParcel = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        campoPoligono = new javax.swing.JTextField();
        campoCodParaje = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        campoParaje = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        campoCodINE = new javax.swing.JTextField();
        campoEM = new javax.swing.JTextField();
        jLabel31 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        campoSupFInca = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        campoSupSobRas = new javax.swing.JTextField();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        campoSupBajRas = new javax.swing.JTextField();
        jLabel34 = new javax.swing.JLabel();
        campoSupConsTot = new javax.swing.JTextField();
        jLabel35 = new javax.swing.JLabel();
        campoSupCub = new javax.swing.JTextField();
        jLabel36 = new javax.swing.JLabel();
        campoX = new javax.swing.JTextField();
        campoY = new javax.swing.JTextField();
        jLabel37 = new javax.swing.JLabel();

        setMaximumSize(new java.awt.Dimension(660, 410));
        setMinimumSize(new java.awt.Dimension(660, 410));
        setPreferredSize(new java.awt.Dimension(660, 410));

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Identificación de la finca"));
        jPanel1.setMaximumSize(new java.awt.Dimension(400, 81));

        campoCodDel.setBackground(new java.awt.Color(242, 242, 160));

        jLabel5.setText("Cod. Del.");

        campoCodMun.setBackground(new java.awt.Color(242, 242, 160));
        campoCodMun.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campoCodMunActionPerformed(evt);
            }
        });

        jLabel11.setText("Cod. Mun.");

        jLabel12.setText("Clase BI:");

        campoClase.setBackground(new java.awt.Color(242, 242, 160));

        campoParcela.setBackground(new java.awt.Color(242, 242, 160));

        jLabel1.setText("Parcela:");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addGap(9, 9, 9)
                        .addComponent(campoCodDel))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoCodMun, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 109, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(8, 8, 8)
                        .addComponent(campoParcela, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoClase, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(campoParcela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                            .addComponent(jLabel12)
                            .addComponent(campoClase, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(campoCodDel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(campoCodMun, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Información Geográfica"));
        jPanel2.setMaximumSize(new java.awt.Dimension(234, 81));

        jLabel30.setText("Huso SRS:");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(campoHuso, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(campoHuso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel30))
                .addContainerGap(26, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Domicilio Tributario"));
        jPanel3.setMaximumSize(new java.awt.Dimension(988, 234));
        jPanel3.setLayout(null);

        jLabel3.setText("Cod. Prov");
        jPanel3.add(jLabel3);
        jLabel3.setBounds(15, 30, 48, 14);
        jPanel3.add(campoCodProvincia);
        campoCodProvincia.setBounds(15, 50, 48, 20);

        jLabel8.setText("Cod. DGC");
        jPanel3.add(jLabel8);
        jLabel8.setBounds(240, 30, 47, 14);
        jPanel3.add(campoCodDGC);
        campoCodDGC.setBounds(241, 50, 50, 20);

        jLabel4.setText("Cod. Via");
        jPanel3.add(jLabel4);
        jLabel4.setBounds(170, 80, 40, 14);

        jLabel14.setText("Num1:");
        jPanel3.add(jLabel14);
        jLabel14.setBounds(480, 80, 31, 14);
        jPanel3.add(campoNum1);
        campoNum1.setBounds(480, 100, 40, 20);
        jPanel3.add(campoNomeVia);
        campoNomeVia.setBounds(270, 100, 200, 20);

        jLabel9.setText("Sg. Via");
        jPanel3.add(jLabel9);
        jLabel9.setBounds(230, 80, 33, 14);

        jLabel10.setText("Nome Via");
        jPanel3.add(jLabel10);
        jLabel10.setBounds(280, 80, 75, 14);
        jPanel3.add(campoSgVia);
        campoSgVia.setBounds(220, 100, 43, 20);

        campoCodVia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campoCodViaActionPerformed(evt);
            }
        });
        jPanel3.add(campoCodVia);
        campoCodVia.setBounds(170, 100, 40, 20);

        jLabel15.setText("Dup1");
        jPanel3.add(jLabel15);
        jLabel15.setBounds(520, 80, 25, 14);
        jPanel3.add(campoDup1);
        campoDup1.setBounds(530, 100, 20, 20);
        jPanel3.add(campoNum2);
        campoNum2.setBounds(560, 100, 30, 20);

        jLabel16.setText("Num2:");
        jPanel3.add(jLabel16);
        jLabel16.setBounds(560, 80, 31, 14);

        jLabel17.setText("Dup2");
        jPanel3.add(jLabel17);
        jLabel17.setBounds(600, 80, 25, 14);

        campoDup2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campoDup2ActionPerformed(evt);
            }
        });
        jPanel3.add(campoDup2);
        campoDup2.setBounds(600, 100, 20, 20);
        jPanel3.add(campoCodPos);
        campoCodPos.setBounds(470, 150, 60, 20);

        jLabel21.setText("Cod. Pos.");
        jPanel3.add(jLabel21);
        jLabel21.setBounds(470, 130, 50, 14);
        jPanel3.add(campoDirNoEs);
        campoDirNoEs.setBounds(130, 150, 320, 20);

        jLabel19.setText("Bloque");
        jPanel3.add(jLabel19);
        jLabel19.setBounds(70, 130, 32, 14);
        jPanel3.add(campoBloque);
        campoBloque.setBounds(70, 150, 44, 20);
        jPanel3.add(campoKm);
        campoKm.setBounds(20, 150, 41, 20);

        jLabel20.setText("Dir. no estruc.");
        jPanel3.add(jLabel20);
        jLabel20.setBounds(130, 130, 195, 14);

        jLabel18.setText("Km");
        jPanel3.add(jLabel18);
        jLabel18.setBounds(20, 130, 14, 14);

        jLabel7.setText("Concello");
        jPanel3.add(jLabel7);
        jLabel7.setBounds(350, 30, 312, 14);
        jPanel3.add(campoConcello);
        campoConcello.setBounds(350, 50, 270, 20);

        jLabel22.setText("Distr.");
        jPanel3.add(jLabel22);
        jLabel22.setBounds(540, 130, 40, 14);
        jPanel3.add(campoDistrito);
        campoDistrito.setBounds(540, 150, 40, 20);

        jLabel6.setText("Provincia");
        jPanel3.add(jLabel6);
        jLabel6.setBounds(69, 30, 110, 14);
        jPanel3.add(campoProvincia);
        campoProvincia.setBounds(69, 50, 170, 20);
        jPanel3.add(campoParcel);
        campoParcel.setBounds(190, 200, 60, 20);

        jLabel25.setText("Polígono");
        jPanel3.add(jLabel25);
        jLabel25.setBounds(130, 180, 40, 14);

        jLabel26.setText("Parcela");
        jPanel3.add(jLabel26);
        jLabel26.setBounds(190, 180, 50, 14);
        jPanel3.add(campoPoligono);
        campoPoligono.setBounds(130, 200, 52, 20);
        jPanel3.add(campoCodParaje);
        campoCodParaje.setBounds(260, 200, 70, 20);

        jLabel23.setText("Paraje");
        jPanel3.add(jLabel23);
        jLabel23.setBounds(340, 180, 40, 14);

        jLabel24.setText("Cod. Paraje");
        jPanel3.add(jLabel24);
        jLabel24.setBounds(260, 180, 70, 14);
        jPanel3.add(campoParaje);
        campoParaje.setBounds(340, 200, 280, 20);

        jLabel13.setText("Cod. INE");
        jPanel3.add(jLabel13);
        jLabel13.setBounds(300, 30, 43, 14);

        campoCodINE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                campoCodINEActionPerformed(evt);
            }
        });
        jPanel3.add(campoCodINE);
        campoCodINE.setBounds(300, 50, 43, 20);
        jPanel3.add(campoEM);
        campoEM.setBounds(19, 100, 140, 20);

        jLabel31.setText("Entidad Menor");
        jPanel3.add(jLabel31);
        jLabel31.setBounds(20, 80, 69, 14);

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Datos Físicos"));
        jPanel4.setMaximumSize(new java.awt.Dimension(640, 81));

        jLabel29.setText("Sup. Finca (m2):");

        jLabel32.setText("Sup.Sobre Rasante (m2):");

        jLabel33.setText("Sup.Bajo Rasante (m2):");

        jLabel34.setText("Sup.Construida Total (m2):");

        jLabel35.setText("Sup.Cubierta (m2):");

        jLabel36.setText("X:");

        jLabel37.setText("Y:");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel29)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoSupFInca, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel32)
                        .addGap(2, 2, 2)
                        .addComponent(campoSupSobRas, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel34)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoSupConsTot, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel35)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoSupCub)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel33)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoSupBajRas))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel36)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoX, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(campoY, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(11, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel29))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel32))
                    .addComponent(campoSupFInca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(campoSupSobRas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(campoSupBajRas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel33)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(campoSupConsTot, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel34))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel35))
                    .addComponent(campoSupCub, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel36))
                    .addComponent(campoX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel37))
                    .addComponent(campoY, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 640, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(5, 5, 5)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void campoCodMunActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campoCodMunActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campoCodMunActionPerformed

    private void campoCodINEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campoCodINEActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campoCodINEActionPerformed

    private void campoDup2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campoDup2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campoDup2ActionPerformed

    private void campoCodViaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_campoCodViaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_campoCodViaActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField campoBloque;
    private javax.swing.JTextField campoClase;
    private javax.swing.JTextField campoCodDGC;
    private javax.swing.JTextField campoCodDel;
    private javax.swing.JTextField campoCodINE;
    private javax.swing.JTextField campoCodMun;
    private javax.swing.JTextField campoCodParaje;
    private javax.swing.JTextField campoCodPos;
    private javax.swing.JTextField campoCodProvincia;
    private javax.swing.JTextField campoCodVia;
    private javax.swing.JTextField campoConcello;
    private javax.swing.JTextField campoDirNoEs;
    private javax.swing.JTextField campoDistrito;
    private javax.swing.JTextField campoDup1;
    private javax.swing.JTextField campoDup2;
    private javax.swing.JTextField campoEM;
    private javax.swing.JTextField campoHuso;
    private javax.swing.JTextField campoKm;
    private javax.swing.JTextField campoNomeVia;
    private javax.swing.JTextField campoNum1;
    private javax.swing.JTextField campoNum2;
    private javax.swing.JTextField campoParaje;
    private javax.swing.JTextField campoParcel;
    private javax.swing.JTextField campoParcela;
    private javax.swing.JTextField campoPoligono;
    private javax.swing.JTextField campoProvincia;
    private javax.swing.JTextField campoSgVia;
    private javax.swing.JTextField campoSupBajRas;
    private javax.swing.JTextField campoSupConsTot;
    private javax.swing.JTextField campoSupCub;
    private javax.swing.JTextField campoSupFInca;
    private javax.swing.JTextField campoSupSobRas;
    private javax.swing.JTextField campoX;
    private javax.swing.JTextField campoY;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    // End of variables declaration//GEN-END:variables
}
